{% block ajax_content %}

{#<script src="{{ asset('bundles/imtevent/js/event_add_gen.js') }}"></script>#}

{% if app.request.attributes.get('_route') == 'event_add_page' %}
    
        <form class="form-horizontal" method="post" action="{{ path('event_add_page', {'id' : idAccount ,'page': 'general' }) }}" {{ form_enctype(form) }}>
{% else %}
    <form class="form-horizontal" method="post" action="{{ path('event_modif_page', {'page': 'general', 'id' : id }) }}" {{ form_enctype(form) }}> 
{% endif %}
   {{ form_errors(form) }}
   <fieldset>
	<legend>Ajout</legend>
        
        
        {{ form_row(form.title, {'attr': {'class': 'input-medium', 'placeholder': 'titre'}}) }}
        {{ form_row(form.allDay, {'widget_type': 'inline'}) }} 
        <div class="dateEvent">
            {{ form_row(form.date )}}     
            {{ form_row(form.datefin) }}  
        </div>
        
        {{ form_row(form.content) }} 
        {{ form_row(form.importance) }} 
    
        
     {{  form_rest(form) }}
    </fieldset>
    <div class="form-actions">
        <button type="submit" class="btn btn-primary" value="general">Ajouter</button>
    </div>
        
</form>
{% endblock %}
